import request from '@/utils/request'

// 查询收款明细列表
export function listSfReceiptDetail(query) {
  return request({
    url: '/life/sfReceiptDetail/list',
    method: 'get',
    params: query
  })
}

// 查询收款明细详细
export function getSfReceiptDetail(id) {
  return request({
    url: '/life/sfReceiptDetail/' + id,
    method: 'get'
  })
}

// 新增收款明细
export function addSfReceiptDetail(data) {
  return request({
    url: '/life/sfReceiptDetail',
    method: 'post',
    data: data
  })
}

// 修改收款明细
export function updateSfReceiptDetail(data) {
  return request({
    url: '/life/sfReceiptDetail',
    method: 'put',
    data: data
  })
}

// 删除收款明细
export function delSfReceiptDetail(id) {
  return request({
    url: '/life/sfReceiptDetail/' + id,
    method: 'delete'
  })
}
